package com.explore.demo.controller;


import com.explore.demo.common.ServerResponse;
import com.explore.demo.service.DeliveryLogService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.jmx.export.annotation.ManagedOperationParameter;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author gaolainan
 * @since 2021-05-15
 */
@RestController
@RequestMapping("/delivery-log")
public class DeliveryLogController {

    @Resource
    private DeliveryLogService deliveryLogService;

    @PostMapping("/add")
    @ApiOperation("投递自己的简历")
    public ServerResponse addResume(HttpServletRequest request,@RequestParam("recruitmentId") Integer recruitmentId, MultipartFile file){
        return deliveryLogService.deliveryResume(request, recruitmentId, file);
    }


}

